#include "odn_util_Random.h"

namespace ouden
{
	namespace utility
	{
		namespace random
		{
			
			//Returns a fandom float from 0 to 1
			float rnd()			
			{ 
				return (float)rand() / (float)RAND_MAX; 
			}
			
			//Seeds the random number generator
			void Seed()			
			{ 
				srand(GetTickCount()); 
			}											
			
			//Returns a random vector with components from 0 to 1
			utility::Vector3D RandVector3D()	
			{ 
				return utility::Vector3D(rnd() * 2 - 1, rnd() * 2 - 1, rnd() * 2 - 1); 
			}
			
		} //namespace random	
	} //namespace utility
} //namespace ouden
